/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
import request from '@/util/request/request.ts'
const apiFault = {}
// 获取知识库分类列表
apiFault.getUserMobileFaultList = (data) => request.globalRequest({url:`/mobile/user/fault/getUserMobileFaultList`, method:'POST',data, power:2})
// 根据知识库类型ID获取故障库列表
apiFault.getMobileFaultList = (data, knowledgeTypeId) => request.globalRequest({url:`/mobile/user/fault/getUserMobileFaultList/` + knowledgeTypeId, method:'post', data, power:2})
// 根据故障库ID获取故障详情内容
apiFault.getUserMobileFaultDetail = (faultId) => request.globalRequest({url:`/mobile/user/fault/getUserMobileFaultDetail/` +faultId, method:'get',power:2})

export default apiFault